import service from '@/utils/request'

// 创建软著
export const createQmSoft = (data) => {
  return service({
    url: '/qmSoft/createQmSoft',
    method: 'post',
    data
  })
}

// 删除软著
export const deleteQmSoft = (id) => {
  return service({
    url: `/qmSoft/deleteQmSoft?id=${id}`,
    method: 'delete',
  })
}

// 批量删除软著
export const deleteQmSoftByIds = (data) => {
  return service({
    url: '/qmSoft/deleteQmSoftByIds',
    method: 'delete',
    data
  })
}

// 更新软著
export const updateQmSoft = (data) => {
  return service({
    url: '/qmSoft/updateQmSoft',
    method: 'put',
    data
  })
}

// 查找软著
export const findQmSoft = (params) => {
  return service({
    url: '/qmSoft/findQmSoft',
    method: 'get',
    params
  })
}

// 获取软著列表
export const getQmSoftList = (params) => {
  return service({
    url: '/qmSoft/getQmSoftList',
    method: 'get',
    params
  })
} 